﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxTabControl;

public partial class PropertyInfo : System.Web.UI.MasterPage
{
    private int _propertyID;

    protected void Page_Init(object sender, EventArgs e)
    {
        try
        {
            _propertyID = int.Parse(Request.QueryString["pid"]);
            
        }

        catch
        {
            _propertyID = 0;
        }

        foreach (Tab t in propertyDetailTabs.Tabs)
        {
            t.NavigateUrl += "?pid=" + _propertyID.ToString();
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Header.Title = "PropertyIQ -- Property Details -- 153 South Monroe Avenue, Columbus, OH 43235";
        imgPropertyHeader.ImageUrl = "~/images/house_pic.jpg";
      
        ltAddress.Text = "153 South Monroe Avenue<br/>Columbus, OH 43235";
    }

    public int PropertyID
    {
        get
        {
            return _propertyID; 
        }
    }
}